package appapi.dao;

import appapi.Vo.AppVo.GetEquipList;
import appapi.Vo.bigScreen.EquipTypeTreeVo;
import appapi.entity.basic.EquipmenttypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/11 14:11
 * @description:
 */

@Mapper
public interface EquipmenttypeMapper {
    int deleteByPrimaryKey(Long equipTypeId);

    int insert(EquipmenttypeEntity record);

    int insertSelective(EquipmenttypeEntity record);

    List<EquipmenttypeEntity> queryList(@Param("equipTypeName") String equipTypeName);

    int count(EquipmenttypeEntity entity);

    EquipmenttypeEntity selectByPrimaryKey(Long equipTypeId);


    int updateByPrimaryKeySelective(EquipmenttypeEntity record);

    int updateByPrimaryKey(EquipmenttypeEntity record);

    List<Map<String, Object>> selectList();

    List<EquipTypeTreeVo> selectAll(@Param("parentId")Long parentId,@Param("screen")String screen);

    List<EquipTypeTreeVo> selectSpecil();

    EquipmenttypeEntity selectByName(String equipTypeName);

    int insertBatch(List<EquipmenttypeEntity> typeList);

    GetEquipList selectByNames(String equipTypeName);
}